﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using CE.Global;

public partial class Admin_home_refinance_ViewHFVariableInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DataTable _dtCompany = General.GetComboItem("ProviderCompany", false);
            ddlProviderCompanyName.DataSource = _dtCompany;
            ddlProviderCompanyName.DataTextField = _dtCompany.Columns[0].ColumnName.ToString();
            ddlProviderCompanyName.DataValueField = _dtCompany.Columns[1].ColumnName.ToString();
            ddlProviderCompanyName.DataBind();

            ddlProviderCompanyName.Items.Insert(0, new ListItem("Select", "-1"));
        }
    }
    protected void grvHFVariable_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (grvHFVariable.Rows.Count > 0)
        {
            Response.Redirect("AddNewHFVariableInfo.aspx?hfid=" + grvHFVariable.SelectedDataKey.Value.ToString());
        }
    }
    protected void btnAddNewHFVariable_Click(object sender, EventArgs e)
    {
        Response.Redirect("AddNewHFVariableInfo.aspx");
    }
}
